package com.transac.demo.controller;

import com.transac.demo.service.TransactionMandatoryService;
import com.transac.demo.service.TransactionNeverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/")
public class TestNeverController {
    @Autowired
    TransactionNeverService transactionNeverService;

    @PostMapping("/testNever1")
    @ResponseBody
    public void testNever1() {
        transactionNeverService.updateMoney1();
    }

    @PostMapping("/testNever2")
    @ResponseBody
    public void testNever2() {
        transactionNeverService.updateMoney2();
    }

    @PostMapping("/testNever3")
    @ResponseBody
    public void testNever3() {
        //transactionNeverService.updateMoney3(id, amount);
    }
}
